package com.teacheryoung.teachdemo.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Project:teachdemo
 * User: Bluce Young
 * Date: 2019/12/2 20:24
 * Description: No Description
 */
@Component
@ConfigurationProperties(prefix = "family")
public class Family {
    //@Value("${family.family-name}")
    private String familyName;

    private Father father;
    private Mother mother;
    private Child child;

    public String getFamilyName() {
        return familyName;
    }

    public void setFamilyName(String familyName) {
        this.familyName = familyName;
    }

    public Father getFather() {
        return father;
    }

    public void setFather(Father father) {
        this.father = father;
    }

    public Mother getMother() {
        return mother;
    }

    public void setMother(Mother mother) {
        this.mother = mother;
    }

    public Child getChild() {
        return child;
    }

    public void setChild(Child child) {
        this.child = child;
    }
}
